Creating
a File from Existing Streams
One way to
create a file that contains data streams is to combine existing streams into a
new file. The streams that provide data for the new file can reside in memory
or in one or more files.
You can build
a file from several streams by using the AVISave
You can also
combine data streams in a new file by using the AVISaveV
You can
create a dialog box in which the user can select compression settings for the
new file by using the AVISaveOptions
You can also
include a callback function with AVISaveOPKJ_9 that your application can use to display
the progress of writing the file and, if needed, let the user cancel the save
operation. You can include the address of the callback function in the calling
sequence of AVISave or AVISaveV.
You can let
the user select a filename for the new file by using the GetSaveFileNamePreview
You can
create a file interface pointer (and a virtual file) for a group of streams by
using the AVIMakeFileFromStreams31SD3RX function.
Note To minimize
image and audio degradation, avoid compressing an AVI file more than once.
Combine uncompressed pieces of video in your editing system and then compress
the final product. For information about compression options, see Video
Compression Manager .